package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.RoleInfoDao;
import com.zsoft.domain.RoleDomain;
import com.zsoft.service.RoleInfoService;

@Service
public class RoleInfoServiceImpl implements RoleInfoService {
	@Autowired
	private RoleInfoDao rInfoDao;

	@Override
	public void add(RoleDomain t) {
		rInfoDao.add(t);
	}

	@Override
	public void deleteById(Long id) {
		rInfoDao.deleteById(id);
	}

	@Override
	public void deleteByExample(RoleDomain t) {
		rInfoDao.delete(t);
	}

	@Override
	public void update(RoleDomain t) {
		rInfoDao.update(t);
	}

	@Override
	public void saveOrUpdate(RoleDomain t) {
	}

	@Override
	public List<RoleDomain> findList(RoleDomain t) {
		return rInfoDao.getList(t);
	}

	@Override
	public RoleDomain getById(Long id) {
		return rInfoDao.getById(id);
	}

}
